package com.andy.blog.dal.mapper;

import com.andy.blog.dal.domain.HitokotoDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * Created by andy on 2024/6/25 17:14
 **/
public interface HitokotoMapper extends BaseMapper<HitokotoDO> {

    @Select("select * from t_hitokoto order by rand() limit 1")
    HitokotoDO selectRandom();
}
